package cn.com.xf.web;

import javax.servlet.ServletContext;

import org.springframework.web.context.ServletContextAware;

public class ResourcePathExposer implements ServletContextAware {

	private ServletContext servletContext;

	@Override
	public void setServletContext(ServletContext servletContext) {
		this.servletContext = servletContext;

	}
	
    public ServletContext getServletContext() {  
        return servletContext;  
    }  
  
    public void init(){  
        String version = "SQRdQyE75v";  
        getServletContext().setAttribute("resourceVersion", version);  
    }  

}